package pers.whj.util.tree;

public interface VisitExpand<T> {
    /**
     * get the data and can stop visit at now
     *
     * @param data  current data
     * @param index the index of this data
     * @return true to go on or false to stop
     */
    boolean visit(T data, int index);
}